/****************************************************
          File Name:15-2.h
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun Jan 11 17:25:06 2015
*****************************************************/

#ifndef HEAD_H_
#define HEAD_H_

#include <iostream>
#include <stdexcept>

class hmeanexcp : public std::logic_error
{
    public:
        hmeanexcp()
            : std::logic_error("hmead() invalid arguments: a = -b\n")
        {}
};

class gmeanexcp : public std::logic_error
{
    public:
        gmeanexcp()
            : std::logic_error("gmean() arguments should be >= 0\n")
        {}
};

#endif
